<?php

namespace app\controller;

use app\model\DeliveryUserModel;
use app\queue\redis\CloseOrderJob;
use support\Log;
use support\Request;

class IndexController extends ApiBaseController
{
    public function index(Request $request)
    {

        $row=DeliveryUserModel::where('id',1)->first();

        return $this->success($row);
    }

    public function view(Request $request)
    {
        return view('index/view', ['name' => 'webman']);
    }

    public function json(Request $request)
    {
        return json(['code' => 0, 'msg' => 'ok']);
    }

}
